package com.campus.lostandfound.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.campus.lostandfound.entity.ClaimRequest;

/**
 * 认领申请Service接口
 */
public interface ClaimRequestService extends IService<ClaimRequest> {
    
    /**
     * 提交认领申请
     */
    boolean submitClaim(ClaimRequest claimRequest);
    
    /**
     * 审核认领申请
     */
    boolean auditClaim(Long id, Integer status, String auditComment);
    
    /**
     * 获取我的认领申请
     */
    IPage<ClaimRequest> getMyClaims(String userId, Integer current, Integer size);
    
    /**
     * 获取待审核的认领申请
     */
    IPage<ClaimRequest> getPendingClaims(Integer current, Integer size);
}

